#ifndef PATIENTDASHBOARD_H
#define PATIENTDASHBOARD_H

#include <QWidget>
#include <QTcpSocket>
#include <QPointer>

class MainWindow; // 前向声明 MainWindow

class PatientDashboard : public QWidget {
    Q_OBJECT

public:
    explicit PatientDashboard(QTcpSocket *socket, MainWindow *mainWindow, QWidget *parent = nullptr);

private slots:
    void onAppointmentButtonClicked();
    void onMedicalRecordsButtonClicked();
    void onPrescriptionsButtonClicked();
    void onEditInfoButtonClicked();
    void onDoctorInfoButtonClicked();
    void onHealthAssessmentButtonClicked();
    void onCommunicationButtonClicked();
    void onLogoutButtonClicked();

private:
    QTcpSocket *tcpSocket;
    MainWindow *mainWindow;
};

#endif // PATIENTDASHBOARD_H
